// import { jsapi, viewUtils } from '@/utils/arcgis';
import layerCreator from '@/utils/arcgis/layer/layer-creator';

export default async () => {
  let searchParams = new URLSearchParams(window.location.href);
  if (searchParams.get('i') !== '1448900554127917057') {
    return;
  }
  const lyr = await layerCreator.create({
    type: 'scene',
    url: 'https://portal.wccg.tech:9002/to443/server1/rest/services/Hosted/xw11_house/SceneServer',
    title: 'temp-builidng-lyr',
  });
  console.log(lyr, '---------------');
  return lyr;
};
